copy object ID

How do I copy the Object ID from one formal module to another? If I can't do that how do I copy the Object ID into another attribute in a formal module?
SystemAdmin - Tue Dec 16 15:51:37 EST 2008

Re: copy object ID
SystemAdmin - Wed Dec 17 02:24:09 EST 2008

In DXL? Object Identifier is an pseudo-attribute composed of module prefic and object absolute number (a read-only value), so in DXL you would copy object o1's Object Identifier to object o2 (which has an attribute Copied ID for storing this value) like this:

Module m = current
Object o1 = current
Object o2 = some object somewhere

o2."Copied ID" = m."Prefix" o1."Absolute Number" ""

The DXL function identifier also gives you the Object Identifier.

Re: copy object ID
llandale - Fri Dec 19 11:04:40 EST 2008

You cannot copy the object itself from one module to another and assign the source's Identifier to the new object. As the other response said you can copy the Identifier string value and assign it to a string/text attribute in the other module.

> Louie